<admintpl file="header" />
	<style>
		.center {
			text-align: center!important;
		}
	</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:;">视频列表</a></li>
			<li><a href="{:U('Lesson/Adminvideo/upload_video')}" target="_self">添加视频</a></li>
		</ul>
		<form class="well form-search" method="post" action="{:U('Lesson/Adminvideo/video_lists')}">
			关键字：
			<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword|default=''}" placeholder="请输入关键字...">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:U('Lesson/Adminvideo/video_lists')}">清空</a>
		</form>
		<form class="js-ajax-form" action="" method="post">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th width="150">视频云存储ID</th>
						<th width="50">视频名称</th>
						<th width="50">视频大小</th>
						<th width="50">上传时间</th>
						<th width="50">编辑</th>
					</tr>
				</thead>
				<foreach name="lists" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.video_id}</td>
						<td>{$vo.video_name}</td>
						<td>{$vo.size}</td>
						<td>{:date("Y-m-d H:i:s", $vo['created_at'])}</td>
						<td>
							<a href="{:U('Lesson/Adminvideo/del_video',array('id' => $vo['id']))}" class="js-ajax-delete">删除</a>
						</td>
					</tr>
				</foreach>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		$(document).ready(function () {
        })
	</script>
</body>
</html>